让我们添加篮球,让它从控制台上的随机位置开始!

  • 点击 并拖出 Basketball。将其命名为 ball
  • 点击 并创建一个名为 x ,范围在 -100150 之间的 Random Integer
  • 使用一个新的 Go To 指令,将 ball 放置在 (x, -25)

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)